package base

import (
	"github.com/BurntSushi/toml"
)

func Config(conf interface{}) {

	if _, err := toml.DecodeFile(`D:\iProject\resk\infra\base\config-test.ini`, conf); err != nil {
		panic(err)
	}
}

func ConfigFromFile(filePath string, conf interface{}) {
	if _, err := toml.DecodeFile(filePath, conf); err != nil {
		panic(err)
	}
}
